package com.example.workbench.service;

import com.example.workbench.common.api.CommonResult;
import com.example.workbench.common.command.AddLineCommand;
import com.example.workbench.common.command.UpdateLineCommand;
import com.example.workbench.common.command.UpdateSortCommand;
import com.example.workbench.entity.DbTaskLine;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 
 * @since 2024-08-03
 */
public interface IDbTaskLineService extends IService<DbTaskLine> {

    CommonResult addLine(AddLineCommand command);

    List<DbTaskLine> queryLine(Long id);

    CommonResult updateLine(UpdateLineCommand command);

    CommonResult delLine(Long id);

    CommonResult<String> updateSort(UpdateSortCommand command);
}
